<div class="<?php echo $this->cssClass; ?>">
    <h3 class="title"><?php echo $this->heading; ?></h3>
    <ul class="left-menu">
    <?php foreach($models as $model) : ?>
        <li class="<?php if ($this->controller->route == 'Article/default/view' && $this->controller->get('locale','') == $model->localeArticle->locale && $this->controller->get('id',0) == $model->id && $this->controller->get('alias','') == $model->localeArticle->alias) echo 'active'; ?>"><a href="<?php echo Yii::app()->createUrl('/Article/default/view',array('cat_id'=>$model->category_id,'locale'=>$model->localeArticle->locale,'id'=>$model->localeArticle->article_id,'alias'=>$model->localeArticle->alias)) ?>"><?php echo $model->localeArticle->title; ?></a></li>
    <?php endforeach; ?>
    </ul>
</div>